package com.zhhe.linearList;


import lombok.Data;

/*
 *Author:ZouHeng
 *Des:双向链表节点
 *Date:2020-12-09  15:53
 */
@Data
public class DoubleNode<T> {
    private T value;
    private DoubleNode<T> next;
    private DoubleNode<T> prev;

    public DoubleNode(T value) {
        this.value = value;
        this.next = null;
        this.prev = null;
    }

    public DoubleNode(T value, DoubleNode<T> next, DoubleNode<T> prev) {
        this.value = value;
        this.next = next;
        this.prev = prev;
    }
}
